﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ScheduleConf.aspx.cs" Inherits="iEN.Schedule.ScheduleConf" %>
<%@ Register src="../UserControl/TopMenu.ascx" tagname="TopMenu" tagprefix="uc2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>排程設定</title>
</head>
<body>
    <form id="form1" runat="server">
    <center>
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
        </div>
        <table style="width: 952px" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
            <tr>
                <td>
                    <uc2:TopMenu ID="TopMenu1" runat="server" />
                </td>
            </tr>
            <tr>
            <td style="background-image:url('../images/title_back.gif')" align="center" ; width="952px" >
                    <asp:Label ID="Label1" runat="server" Text="排程設定" BackColor="Transparent" style="color:Blue;background-color:Transparent;font-family:微軟正黑體,新細明體,標楷體,Arial,sans-serif;font-size:XX-Large;"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="left">
                    <asp:Label ID="lblMsg" runat="server" Font-Names="微軟正黑體" Font-Size="X-Large"  ForeColor="Red" Text="你沒有瀏覽此頁面的權限" Visible="False"></asp:Label>
                    <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                        <ContentTemplate>
                            <asp:ImageButton ID="imgTip" runat="server" ImageUrl="~/images/info_show.gif" OnClick="imgTip_Click"
                                ToolTip="按我顯示或隱藏設定說明" />
                            <asp:Panel ID="Panel2" runat="server" BackColor="#FFFFC0" GroupingText="群組排時程說明" Width="800px"
                                Visible="False">
                                <asp:Image ID="Image3" runat="server" ImageUrl="~/images/flag.gif" /><asp:Label ID="Label5"
                                    runat="server" Font-Size="10pt" ForeColor="Blue" Text="請先設定群組，再設定群組排時程。"></asp:Label></asp:Panel>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td align="left">
                    <cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" >
                        <cc1:TabPanel ID="TabPanel1" runat="server" HeaderText="TabPanel1">
                            <HeaderTemplate>
                                設備排程
                            </HeaderTemplate>
                            
<ContentTemplate>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
             <ContentTemplate>
                                <asp:Panel ID="Panel4" runat="server" BackColor="PowderBlue" GroupingText="設備排程" Width="600px"
                                    Font-Size="15px" ForeColor="Black" Font-Names="微軟正黑體,新細明體,標楷體,Arial,sans-serif">
                                    <img src="../images/dot01.gif" />
                                    <asp:Label ID="lblDeviceID" runat="server" ForeColor="Black"
                                        Text="設備名稱："></asp:Label>


                                     <asp:DropDownList ID="ddlDevice" runat="server" CssClass="normal" Font-Size="Medium" 
                                        AutoPostBack="True" onselectedindexchanged="ddlDevice_SelectedIndexChanged"></asp:DropDownList>


                                    <asp:Button ID="btnScheduleQuery" runat="server" CssClass="graybtn" OnClick="btnScheduleQuery_Click"
                                        Text="查詢" ValidationGroup="valAlarmGrpAdd" />

                 
                                </asp:Panel>


                                <br />
                                <asp:Panel ID="Panel5" runat="server" BackColor="PowderBlue" GroupingText="設備排程列表" Width="600px"
                                             Font-Size="15px" ForeColor="Black" Font-Names="微軟正黑體,新細明體,標楷體,Arial,sans-serif">
                                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                    <ContentTemplate>         
                                        <asp:GridView ID="gvScheduleList" runat="server" BackColor="White" BorderColor="#336666"
                                            BorderStyle="Double" BorderWidth="3px" CellPadding="4" GridLines="Horizontal"
                                            AutoGenerateColumns="False" Width="580px" Font-Bold="False" EmptyDataText="查無相關資料..."
                                            Font-Size="15px" Font-Names="微軟正黑體,新細明體,標楷體,Arial,sans-serif"
                                            OnRowCommand="gvSchedule_RowCommand"
                                            DataKeyNames="_name" 
                                            HorizontalAlign="Center" 
                                            onselectedindexchanging="gvSchedule_SelectedIndexChanging" 
                                            onrowcreated="gvSchedule_RowCreated">
                                            <RowStyle BackColor="White" ForeColor="#333333" />
                                            <HeaderStyle BackColor="#ADE6ED" Font-Names="42" Font-Size="10pt" ForeColor="Teal"
                                                HorizontalAlign="Center" />
                                            <PagerSettings Position="TopAndBottom" />
                                            <PagerStyle BackColor="#ADE6ED" Font-Size="10pt" ForeColor="Blue" HorizontalAlign="Center" />
                                            <AlternatingRowStyle BackColor="Azure" />
                                            <Columns>
                                                <asp:BoundField DataField="_name" HeaderText="設備排程名稱" SortExpression="_name">
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="_schedule_group_id" HeaderText="_schedule_group_id">
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="_schedule_id" HeaderText="_schedule_id">
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="_start" HeaderText="起始日期" 
                                                    DataFormatString="{0:yyyy/MM/dd}" HtmlEncode="False">
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="_end" HeaderText="結束日期" 
                                                    DataFormatString="{0:yyyy/MM/dd}" HtmlEncode="False">
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="PowerStartTime" HeaderText="供電時間">
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="PowerStopTime" HeaderText="斷電時間">
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="_cron" HeaderText="運轉方式">
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                 <asp:CommandField ButtonType="Button" EditText="選取"  SelectText="選取" 
                                                    ShowSelectButton="True">
                                                <ItemStyle Width="50px" />
                                                </asp:CommandField>
                                                <asp:TemplateField ShowHeader="False">
                                                    <ItemTemplate>
                                                        <asp:Button ID="btnDelSchedule" runat="server" CausesValidation="false"
                                                            CommandName="Del" OnClientClick="return confirm('將刪除此筆設備排程, 確定要刪除??');"
                                                            CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" Text="刪除" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                             <EmptyDataTemplate>
                                                <table>
                                                    <tr>
                                                        <td style="font-size: 20; color: Red;">
                                                            無設備排程資料...
                                                        </td>
                                                    </tr>
                                                </table>
                                            </EmptyDataTemplate>
                                        </asp:GridView>
                                            <asp:Label ID="lblPriInfo" runat="server" ForeColor="Red"></asp:Label>
                                                                      
                                            </ContentTemplate>
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="btnScheduleAdd" EventName="Click" />
                                        </Triggers>
                                    </asp:UpdatePanel>
                                </asp:Panel>
                                <asp:Button ID="btnScheduleAdd" runat="server"  OnClick="btnScheduleAdd_Click" Text="新增設備排程" />
                                 <br />
                                  <br />

                                <asp:Panel ID="Panel7" runat="server" BackColor="PowderBlue" 
                                    Font-Names="微軟正黑體,新細明體,標楷體,Arial,sans-serif" ForeColor="Black" 
                                    GroupingText="新增設備排程" Height="93px" Width="836px">
                                    <table align="left" style="width:100%;" 
                                        style="font-family:微軟正黑體;font-size:XX-Large;">
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:Label ID="Label6" runat="server" Text="排程名稱"></asp:Label>


                                            </td>
                                            <td>
                                                <asp:Label ID="Label2" runat="server" Text=" 開始日期"></asp:Label>


                                                <td>
                                                    <asp:Label ID="Label3" runat="server" Text="結束日期"></asp:Label>


                                                </td>
                                                <td>
                                                    <asp:Label ID="Label4" runat="server" Text="供電時間"></asp:Label>


                                                </td>
                                                <td>
                                                    <asp:Label ID="Label7" runat="server" Text="斷電時間"></asp:Label>


                                                </td>
                                                <td>
                                                    <asp:Label ID="Label8" runat="server" Text="運轉方式"></asp:Label>


                                                </td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="tbNameNew" runat="server" Height="15px" Width="100px"></asp:TextBox>


                                            </td>
                                            <td>
                                                <asp:TextBox ID="tbStartTime" runat="server" Height="15px" Width="100px"></asp:TextBox>


                                                <cc1:CalendarExtender ID="ceStartTime" runat="server" CssClass="cssCalendar" 
                                                    Enabled="True" Format="yyyy/MM/dd" TargetControlID="tbStartTime"></cc1:CalendarExtender>


                                            </td>
                                            <td>
                                                <asp:TextBox ID="tbEndTime" runat="server" Height="15px" Width="100px"></asp:TextBox>


                                                <cc1:CalendarExtender ID="ceEndTime" runat="server" CssClass="cssCalendar" 
                                                    Enabled="True" Format="yyyy/MM/dd" TargetControlID="tbEndTime"></cc1:CalendarExtender>


                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlStartHour" runat="server" AutoPostBack="True" 
                                                    CssClass="normal"></asp:DropDownList>


                                                <asp:Label ID="Label9" runat="server" Text="時"></asp:Label>


                                                <asp:DropDownList ID="ddlStartMin" runat="server" AutoPostBack="True" 
                                                    CssClass="normal"></asp:DropDownList>


                                                <asp:Label ID="Label10" runat="server" Text="分"></asp:Label>


                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlEndHour" runat="server" AutoPostBack="True" 
                                                    CssClass="normal"></asp:DropDownList>


                                                <asp:Label ID="Label11" runat="server" Text="時"></asp:Label>


                                                <asp:DropDownList ID="ddlEndMin" runat="server" AutoPostBack="True" 
                                                    CssClass="normal"></asp:DropDownList>


                                                <asp:Label ID="Label12" runat="server" Text="分"></asp:Label>


                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlWay" runat="server" AutoPostBack="True" 
                                                    CssClass="normal">
                                                    <asp:ListItem Value="0">每天</asp:ListItem>
                                                    <asp:ListItem Value="1">星期一至星期五</asp:ListItem>
                                                    <asp:ListItem Value="2">星期六至星期日</asp:ListItem>
                                                    <asp:ListItem Value="3">星期六</asp:ListItem>
                                                    <asp:ListItem Value="4">星期日</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                    </table>
                                     <br />
                                    <asp:Button ID="btnNewYes" runat="server" CssClass="graybtn" 
                                        OnClick="btnNewYes_Click" Text="確定" />
                                   <asp:Button ID="btnCancel" runat="server" onclick="NoEdit_Click" Text="取消" />
                                </asp:Panel>
                                                 
                                <asp:Panel ID="Panel8" runat="server" BackColor="PowderBlue"
                                    Font-Names="微軟正黑體,新細明體,標楷體,Arial,sans-serif" ForeColor="Black" 
                                    GroupingText="修改設備排程" Height="93px" Width="836px">
                                    <table align="left" style="width:100%;" 
                                        style="font-family:微軟正黑體;font-size:XX-Large;">
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:Label ID="Label13" runat="server" Text="排程名稱"></asp:Label>


                                            </td>
                                            <td>
                                                <asp:Label ID="Label14" runat="server" Text=" 開始日期"></asp:Label>


                                                <td>
                                                    <asp:Label ID="Label15" runat="server" Text="結束日期"></asp:Label>


                                                </td>
                                                <td>
                                                    <asp:Label ID="Label16" runat="server" Text="供電時間"></asp:Label>


                                                </td>
                                                <td>
                                                    <asp:Label ID="Label17" runat="server" Text="斷電時間"></asp:Label>


                                                </td>
                                                <td>
                                                    <asp:Label ID="Label18" runat="server" Text="運轉方式"></asp:Label>


                                                </td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="tbNameM" runat="server" Height="15px" Width="100px"></asp:TextBox>


                                            </td>
                                            <td>
                                                <asp:TextBox ID="tbStartTimeM" runat="server" Height="15px" Width="100px"></asp:TextBox>


                                                <cc1:CalendarExtender ID="ceStartTimeM" runat="server" 
                                                    CssClass="cssCalendar" Enabled="True" Format="yyyy/MM/dd" 
                                                    TargetControlID="tbStartTimeM"></cc1:CalendarExtender>


                                            </td>
                                            <td>
                                                <asp:TextBox ID="tbEndTimeM" runat="server" Height="15px" Width="100px"></asp:TextBox>


                                                <cc1:CalendarExtender ID="ceEndTimeM" runat="server" 
                                                    CssClass="cssCalendar" Enabled="True" Format="yyyy/MM/dd" 
                                                    TargetControlID="tbEndTimeM"></cc1:CalendarExtender>


                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlStartHourM" runat="server" AutoPostBack="True" 
                                                    CssClass="normal"></asp:DropDownList>


                                                <asp:Label ID="Label19" runat="server" Text="時"></asp:Label>


                                                <asp:DropDownList ID="ddlStartMinM" runat="server" AutoPostBack="True" 
                                                    CssClass="normal"></asp:DropDownList>


                                                <asp:Label ID="Label20" runat="server" Text="分"></asp:Label>


                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlEndHourM" runat="server" AutoPostBack="True" 
                                                    CssClass="normal"></asp:DropDownList>


                                                <asp:Label ID="Label21" runat="server" Text="時"></asp:Label>


                                                <asp:DropDownList ID="ddlEndMinM" runat="server" AutoPostBack="True" 
                                                    CssClass="normal"></asp:DropDownList>


                                                <asp:Label ID="Label22" runat="server" Text="分"></asp:Label>


                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlWayM" runat="server" AutoPostBack="True" 
                                                    CssClass="normal">
                                                    <asp:ListItem Value="0">每天</asp:ListItem>
                                                    <asp:ListItem Value="1">星期一至星期五</asp:ListItem>
                                                    <asp:ListItem Value="2">星期六至星期日</asp:ListItem>
                                                    <asp:ListItem Value="3">星期六</asp:ListItem>
                                                    <asp:ListItem Value="4">星期日</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                    </table>
                                     <br />
                                    <asp:Button ID="btnModifyYes" runat="server" CssClass="graybtn" 
                                        OnClick="btnModifyYes_Click" Text="確定" />
                                    <asp:Button ID="Button2" runat="server" onclick="NoEditDeviceM_Click" Text="取消" />

                                </asp:Panel>


     </ContentTemplate>
   </asp:UpdatePanel>
                                
</ContentTemplate>
                            
                        

</cc1:TabPanel>
                        <cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2">
                            <HeaderTemplate>
                                群組排時程
                            </HeaderTemplate>
                            
<ContentTemplate>
        <asp:UpdatePanel ID="UpdatePanel3" runat="server">
             <ContentTemplate>
                                <asp:Panel ID="Panel1" runat="server" BackColor="PowderBlue" GroupingText="群組排時程" Width="600px"
                                    Font-Size="15px" ForeColor="Black" Font-Names="微軟正黑體,新細明體,標楷體,Arial,sans-serif">
                                    <img src="../images/dot01.gif" />
                                    <asp:Label ID="Label23" runat="server" ForeColor="Black"
                                        Text="群組名稱："></asp:Label>


                                     <asp:DropDownList ID="ddlGroup" runat="server" CssClass="normal" Font-Size="Medium" 
                                        AutoPostBack="True" onselectedindexchanged="ddlGroup_SelectedIndexChanged"></asp:DropDownList>


                                    <asp:Button ID="btnGroupQuery" runat="server" CssClass="graybtn" OnClick="btnGroupQuery_Click"
                                        Text="查詢" />

                 
                                </asp:Panel>


                                <br />
                                <asp:Panel ID="Panel3" runat="server" BackColor="PowderBlue" GroupingText="群組排時程列表" Width="600px"
                                             Font-Size="15px" ForeColor="Black" Font-Names="微軟正黑體,新細明體,標楷體,Arial,sans-serif">
                                <asp:UpdatePanel ID="UpdatePanel5" runat="server">
                                    <ContentTemplate>
                                        
                                        <asp:GridView ID="gvGroupList" runat="server" BackColor="White" BorderColor="#336666"
                                            BorderStyle="Double" BorderWidth="3px" CellPadding="4" GridLines="Horizontal"
                                            AutoGenerateColumns="False" Width="580px" EmptyDataText="查無相關資料..." Font-Bold="False"
                                            Font-Size="15px" Font-Names="微軟正黑體,新細明體,標楷體,Arial,sans-serif"
                                            OnRowCommand="gvGroup_RowCommand"
                                            DataKeyNames="_name" 
                                            HorizontalAlign="Center" 
                                            onselectedindexchanging="gvGroup_SelectedIndexChanging" 
                                            onrowcreated="gvGroup_RowCreated">
                                            <RowStyle BackColor="White" ForeColor="#333333" />
                                            <HeaderStyle BackColor="#ADE6ED" Font-Names="42" Font-Size="10pt" ForeColor="Teal"
                                                HorizontalAlign="Center" />
                                            <PagerSettings Position="TopAndBottom" />
                                            <PagerStyle BackColor="#ADE6ED" Font-Size="10pt" ForeColor="Blue" HorizontalAlign="Center" />
                                            <AlternatingRowStyle BackColor="Azure" />
                                            <Columns>
                                                <asp:BoundField DataField="_name" HeaderText="群組排時程名稱" SortExpression="_name">
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="_schedule_group_id" HeaderText="_schedule_group_id">
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="_schedule_id" HeaderText="_schedule_id">
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="_start" HeaderText="起始日期" 
                                                    DataFormatString="{0:yyyy/MM/dd}" HtmlEncode="False">
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="_end" HeaderText="結束日期" 
                                                    DataFormatString="{0:yyyy/MM/dd}" HtmlEncode="False">
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="PowerStartTime" HeaderText="供電時間">
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="PowerStopTime" HeaderText="斷電時間">
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="_cron" HeaderText="運轉方式">
                                                <ItemStyle HorizontalAlign="Center" />
                                                </asp:BoundField>
                                                 <asp:CommandField ButtonType="Button" EditText="選取" SelectText="選取"
                                                    ShowSelectButton="True">
                                                <ItemStyle Width="50px" />
                                                </asp:CommandField>
                                                <asp:TemplateField ShowHeader="False">
                                                    <ItemTemplate>
                                                        <asp:Button ID="btnDelGroup" runat="server" CausesValidation="false"
                                                            CommandName="Del" OnClientClick="return confirm('將刪除此筆群組排程, 確定要刪除??');"
                                                            CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" Text="刪除" />
                                                    </ItemTemplate>
                                                </asp:TemplateField>
                                            </Columns>
                                            <EmptyDataTemplate>
                                                <table>
                                                    <tr>
                                                        <td style="font-size: 20; color: Red;">
                                                            無群組排時程資料...
                                                        </td>
                                                    </tr>
                                                </table>
                                            </EmptyDataTemplate>
                                        </asp:GridView>
                                            <asp:Label ID="Label24" runat="server" ForeColor="Red"></asp:Label>
                                                                      
                                            </ContentTemplate>
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="btnGroupAdd" EventName="Click" />
                                        </Triggers>
                                    </asp:UpdatePanel>
                                </asp:Panel>
                                <asp:Button ID="btnGroupAdd" runat="server"  OnClick="btnGroupAdd_Click" Text="新增群組排時程" />
                                 <br />
                                  <br />

                                <asp:Panel ID="Panel6" runat="server" BackColor="PowderBlue" 
                                    Font-Names="微軟正黑體,新細明體,標楷體,Arial,sans-serif" ForeColor="Black" 
                                    GroupingText="新增群組排時程" Height="93px" Width="836px">
                                    <table align="left" style="width:100%;" 
                                        style="font-family:微軟正黑體;font-size:XX-Large;">
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:Label ID="Label25" runat="server" Text="排程名稱"></asp:Label>


                                            </td>
                                            <td>
                                                <asp:Label ID="Label26" runat="server" Text=" 開始日期"></asp:Label>


                                                <td>
                                                    <asp:Label ID="Label27" runat="server" Text="結束日期"></asp:Label>


                                                </td>
                                                <td>
                                                    <asp:Label ID="Label28" runat="server" Text="供電時間"></asp:Label>


                                                </td>
                                                <td>
                                                    <asp:Label ID="Label29" runat="server" Text="斷電時間"></asp:Label>


                                                </td>
                                                <td>
                                                    <asp:Label ID="Label30" runat="server" Text="運轉方式"></asp:Label>


                                                </td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="tbGroupName" runat="server" Height="15px" Width="100px"></asp:TextBox>


                                            </td>
                                            <td>
                                                <asp:TextBox ID="tbGroupStartTime" runat="server" Height="15px" Width="100px"></asp:TextBox>


                                                <cc1:CalendarExtender ID="ceGroupStartDate" runat="server" CssClass="cssCalendar" 
                                                    Enabled="True" Format="yyyy/MM/dd" TargetControlID="tbGroupStartTime"></cc1:CalendarExtender>


                                            </td>
                                            <td>
                                                <asp:TextBox ID="tbGroupEndTime" runat="server" Height="15px" Width="100px"></asp:TextBox>


                                                <cc1:CalendarExtender ID="ceGroupEndDate" runat="server" CssClass="cssCalendar" 
                                                    Enabled="True" Format="yyyy/MM/dd" TargetControlID="tbGroupEndTime"></cc1:CalendarExtender>


                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlGroupStartHour" runat="server" AutoPostBack="True" 
                                                    CssClass="normal"></asp:DropDownList>


                                                <asp:Label ID="Label31" runat="server" Text="時"></asp:Label>


                                                <asp:DropDownList ID="ddlGroupStartMin" runat="server" AutoPostBack="True" 
                                                    CssClass="normal"></asp:DropDownList>


                                                <asp:Label ID="Label32" runat="server" Text="分"></asp:Label>


                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlGroupEndHour" runat="server" AutoPostBack="True" 
                                                    CssClass="normal"></asp:DropDownList>


                                                <asp:Label ID="Label33" runat="server" Text="時"></asp:Label>


                                                <asp:DropDownList ID="ddlGroupEndMin" runat="server" AutoPostBack="True" 
                                                    CssClass="normal"></asp:DropDownList>


                                                <asp:Label ID="Label34" runat="server" Text="分"></asp:Label>


                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlGroupWay" runat="server" AutoPostBack="True" 
                                                    CssClass="normal">
                                                    <asp:ListItem Value="0">每天</asp:ListItem>
                                                    <asp:ListItem Value="1">星期一至星期五</asp:ListItem>
                                                    <asp:ListItem Value="2">星期六至星期日</asp:ListItem>
                                                    <asp:ListItem Value="3">星期六</asp:ListItem>
                                                    <asp:ListItem Value="4">星期日</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                    </table>
                                     <br />
                                    <asp:Button ID="btnGroupNewYes" runat="server" CssClass="graybtn" 
                                        OnClick="btnGroupNewYes_Click" Text="確定" />
                                   <asp:Button ID="Button4" runat="server" onclick="NoEditGroup_Click" Text="取消" />

                                </asp:Panel>


                                
                                <asp:Panel ID="Panel9" runat="server" BackColor="PowderBlue"
                                    Font-Names="微軟正黑體,新細明體,標楷體,Arial,sans-serif" ForeColor="Black" 
                                    GroupingText="修改群組排時程" Height="93px" Width="836px">
                                    <table align="left" style="width:100%;" 
                                        style="font-family:微軟正黑體;font-size:XX-Large;">
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:Label ID="Label35" runat="server" Text="排程名稱"></asp:Label>


                                            </td>
                                            <td>
                                                <asp:Label ID="Label36" runat="server" Text=" 開始日期"></asp:Label>


                                                <td>
                                                    <asp:Label ID="Label37" runat="server" Text="結束日期"></asp:Label>


                                                </td>
                                                <td>
                                                    <asp:Label ID="Label38" runat="server" Text="供電時間"></asp:Label>


                                                </td>
                                                <td>
                                                    <asp:Label ID="Label39" runat="server" Text="斷電時間"></asp:Label>


                                                </td>
                                                <td>
                                                    <asp:Label ID="Label40" runat="server" Text="運轉方式"></asp:Label>


                                                </td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="tbGroupNameM" runat="server" Height="15px" Width="100px" 
                                                    Enabled="True"></asp:TextBox>


                                            </td>
                                            <td>
                                                <asp:TextBox ID="tbGroupStartTimeM" runat="server" Height="15px" Width="100px"></asp:TextBox>


                                                <cc1:CalendarExtender ID="ceGroupStartTimeM" runat="server" 
                                                    CssClass="cssCalendar" Enabled="True" Format="yyyy/MM/dd" 
                                                    TargetControlID="tbGroupStartTimeM"></cc1:CalendarExtender>


                                            </td>
                                            <td>
                                                <asp:TextBox ID="tbGroupEndTimeM" runat="server" Height="15px" Width="100px"></asp:TextBox>


                                                <cc1:CalendarExtender ID="ceGroupEndTimeM" runat="server" 
                                                    CssClass="cssCalendar" Enabled="True" Format="yyyy/MM/dd" 
                                                    TargetControlID="tbGroupEndTimeM"></cc1:CalendarExtender>


                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlGroupStartHourM" runat="server" AutoPostBack="True" 
                                                    CssClass="normal"></asp:DropDownList>


                                                <asp:Label ID="Label41" runat="server" Text="時"></asp:Label>


                                                <asp:DropDownList ID="ddlGroupStartMinM" runat="server" AutoPostBack="True" 
                                                    CssClass="normal"></asp:DropDownList>


                                                <asp:Label ID="Label42" runat="server" Text="分"></asp:Label>


                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlGroupEndHourM" runat="server" AutoPostBack="True" 
                                                    CssClass="normal"></asp:DropDownList>


                                                <asp:Label ID="Label43" runat="server" Text="時"></asp:Label>


                                                <asp:DropDownList ID="ddlGroupEndMinM" runat="server" AutoPostBack="True" 
                                                    CssClass="normal"></asp:DropDownList>


                                                <asp:Label ID="Label44" runat="server" Text="分"></asp:Label>


                                            </td>
                                            <td>
                                                <asp:DropDownList ID="ddlGroupWayM" runat="server" AutoPostBack="True" 
                                                    CssClass="normal">
                                                    <asp:ListItem Value="0">每天</asp:ListItem>
                                                    <asp:ListItem Value="1">星期一至星期五</asp:ListItem>
                                                    <asp:ListItem Value="2">星期六至星期日</asp:ListItem>
                                                    <asp:ListItem Value="3">星期六</asp:ListItem>
                                                    <asp:ListItem Value="4">星期日</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                    </table>
                                     <br />
                                    <asp:Button ID="btnGroupModifyYes" runat="server" CssClass="graybtn" 
                                        OnClick="btnGroupModifyYes_Click" Text="確定" />
                                    <asp:Button ID="Button1" runat="server" onclick="NoEditGroupM_Click" Text="取消" />

                                </asp:Panel>


     </ContentTemplate>
   </asp:UpdatePanel>
                                
</ContentTemplate>
                            
                        

</cc1:TabPanel>
                    </cc1:TabContainer>
                </td>
            </tr>
                        
        </table>
    </center>
    </form>
</body>
</html>
